#pragma once

#include "Includes.h"


class IConnection {
public:
	// Methods

	virtual void sendString( std::string s) = 0;

	// read a maximum of <bufsize> bytes to the buffer <buf>
	// returns the actual number of bytes written
	virtual int read(char* buf, int bufSize) = 0;

	// close the connection gracefully
	virtual void close() = 0;

	virtual std::string toString() = 0;
};